
package ltd.letao.mall.dao;

import ltd.letao.mall.entity.LeTaoMallOrder;
import ltd.letao.mall.util.PageQueryUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LeTaoMallOrderMapper {
    int deleteByPrimaryKey(Long orderId);

    int insert(LeTaoMallOrder record);

    int insertSelective(LeTaoMallOrder record);

    LeTaoMallOrder selectByPrimaryKey(Long orderId);

    LeTaoMallOrder selectByOrderNo(String orderNo);

    int updateByPrimaryKeySelective(LeTaoMallOrder record);

    int updateByPrimaryKey(LeTaoMallOrder record);

    List<LeTaoMallOrder> findLeTaoMallOrderList(PageQueryUtil pageUtil);

    int getTotalLeTaoMallOrders(PageQueryUtil pageUtil);

    List<LeTaoMallOrder> selectByPrimaryKeys(@Param("orderIds") List<Long> orderIds);

    int checkOut(@Param("orderIds") List<Long> orderIds);

    int closeOrder(@Param("orderIds") List<Long> orderIds, @Param("orderStatus") int orderStatus);

    int checkDone(@Param("orderIds") List<Long> asList);
}